package net.jumpengine.event;

import net.jumpengine.Manager;
import net.jumpengine.enume.GameState;
import net.jumpengine.inter.IStateChangeEvent;

public class GameStateChangeEvent implements IStateChangeEvent {

	@Override
	public void setStatus(Enum<?> oldState, Enum<?> newState) {
		Manager.getLog().debug(this.getClass()," oldState:", oldState," newState:",newState," autoAdd:",Manager.getAutoAdd());
		if(newState==GameState.pause) {
			Manager.stop();
		}else {
			Manager.start();
		}
	}
}
